package com.example.demo.controller;

import com.example.demo.entity.Address;
import com.example.demo.utils.SpringUtils;
import com.mchange.v2.lang.StringUtils;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloPublish {

    @RequestMapping("publish")
    public void publish(){
        Address address=new Address();
        SpringUtils.context().publishEvent(address);
    }




}
